﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;

namespace Unity.Hotfix
{
    public class CommonTipsBox : UIWindow
    {
        public override string prefabPath => "CommonTipsBox";

        public override void OnInitWnd(GameObject obj)
        {
            base.OnInitWnd(obj);
        }

        public override void OnShowWnd()
        {
            base.OnShowWnd();
            
            Button btn = skin.transform.Find("mask").GetComponent<Button>();
            btn.onClick.AddListener(() =>
            {
                UISystem.Instance.RemoveWindow("CommonTipsBox");
            });
        }

        public override void OnAtTopWnd()
        {
            base.OnAtTopWnd();

        }

        public override void OnCloseWnd()
        {
            base.OnCloseWnd();
        }
    }
}
